package com.parenting.service;

import com.parenting.entities.GiftDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.parenting.model.IMPage;
import com.parenting.model.UserDTO;
import com.parenting.request.AddGiftRequest;
import com.parenting.request.SearchGiftPageListRequest;
import com.parenting.request.UpdateGiftRequest;
import com.parenting.response.GiftPageListResponse;
import com.parenting.response.GiftResponse;

/**
 * <p>
 * 连带赠表 服务类
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-09-15
 */
public interface GiftService extends IService<GiftDO> {
    /***
     * 连带增活动新增
     * @param request
     * @param userDTO
     */
    void saveGift(AddGiftRequest request,UserDTO userDTO);

    /***
     * 分页
     * @param request
     * @return
     */
    IMPage<GiftPageListResponse> pageListGift(SearchGiftPageListRequest request);


    /***
     * 详情
     * @param id
     * @return
     */
     GiftResponse getGiftResponseById(String id);

    /***
     * 修改 连带增活动 优惠券数量
     * @param request
     */
    void updateGift(UpdateGiftRequest request);


}
